(require 'eval-after-load)
(setq time-stamp-format "%04y-%02m-%02d %02H:%02M:%02S %:a by %u")

(add-hook 'write-file-hooks 'time-stamp)
;(add-hook 'before-save-hook 'time-stamp)
;; (eval-after-load "time-stamp"
;;   '(progn
;;      (setq time-stamp-format "%04y-%02m-%02d %02H:%02M:%02S %:a by %u")))

(provide 'time-stamp-settings)